﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _04_IOC
{
    internal class BService : IDisposable
    {
        public string ID { get; }

        public BService()
        {
            ID = Guid.NewGuid().ToString();
        }

        public void Dispose()
        {
            Console.WriteLine(ID + ":已释放...");
        }
    }
}
